package com.testflow.hyh.aspectj;

import com.testflow.hyh.annotation.TestApiDesc;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.LocalVariableTableParameterNameDiscoverer;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.expression.spel.support.StandardEvaluationContext;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;
import java.text.SimpleDateFormat;

/**
 * @Author: 何宇航
 * @DATE: 2022/1/14 0014 16:07
 * @Use:
 */
@Aspect
@Component
public class TestApiDescAspect {

    /**
     * 后置方法用于推送消息
     * @param point
     * @param testApiDesc
     */
    @After("@annotation(testApiDesc)")
    public void around(JoinPoint point, TestApiDesc testApiDesc)throws Exception{
        System.out.println("我来了");
    }
}
